From: http://www.huihoo.org/apache/tomcat/heavyz/02-catalina.sh.html
1-Overview
The script Catalina. Sh is the most critical script for starting and disabling Tomcat servers.In addition, startup. SH and shutdown. Sh both use different parameters to call the script.The script is used as follows (derived from the script itself ):
2-script analysis
#! /Bin/sh #===
Tomcat starts batch processing -- catalina. bat, tomcatcatalina. batThis batch processing is the core script for tomcat server startup and shutdown. Including .... (Various variables). This section describes the logic of this batch.First look at the first part of the script:**************************************** **************************************** ********
In order to be more secure, I prefer to use Tomcat to boot (daemon.sh) in a daemon way using jsvc in a production environment. This way, Tomcat itself will generate another log file (catalina-daemon.out) instead of the previous catalina.out. However, there are 2 problems: 1.catalina-daemon.out This file does not automa
Cronolog separates Tomcat catalina. out logsTomcat logs are output in catalina. as time passes, the generated log files become larger and larger. The main reason is that some information printed during debugging occupies space, such as System. out and log. The catalina. out file of
Tomcat is configured in Eclipse's server, and after running Tomcat in Eclipse, the project's JSP file is compiled into a servlet file, not in Tomcat.Instead, it is placed in the. Metadata directory of the Eclipse's workspace directoryD:\Program Files (x86) \eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\work\catalina\ localhost\servlet2\org
. What difference they have.
First, the parameters defined in both variables are passed to the command that launches Tomcat: "Start" and "Run", and only the parameters defined in Java_opts are passed to the "stop" command.
So defining a parameter to which variable does not affect Tomcat's start-up and operation only affects the end of Tomcat's run.
The second difference is more subtle. Other applications can also use java_opts, but
Generate Catalina. Out Method
Lead: This article is a method for outputting console information to the Catalina. Out file for Windows Tomcat and ensuring real-time viewing of log files.
1. Create Catalina. Out
1. Modify the startup. BAT file in the Tomcat bin directory.
Loca
Size Control of Tomcat output catalina. out
The default Log File catalina. out generated by Tomcat increases gradually over time, possibly reaching the G level. If the file is too large, we will not be able to use regular editing tools to view it, seriously affecting system maintenance. To solve this problem, we mainly
From: Http://itfish.net/article/41668.html summarizes the architecture of Tomcat, the process of processing HTTP requests, installation and configuration, directory structure, setting compression and support for Chinese filenames, and the origin of the name Catalina ... such asTomcat and JVM:A tomcat will only start a JVM, all WebApps a JVM process, so system.exi
Catalina initializes each component and starts each component.
This article describes how Bootstrap starts Catalina. Let's take a look at the role of Catalina:
1. Catalina loads server. xml through the digester class, instantiates various components in server. XML, and assigns values to these instances (this class is d
Summarizes Tomcat's architecture, process for handling HTTP requests, installation and configuration, directory structure, setting compression and support for Chinese file names, andThe origin of the name Catalina ... such as Tomcat and JVM:A tomcat will only start a JVM, all WebApps a JVM process, so system.exit () will cause an impact on other apps in the same
Resource URL: http://download.csdn.net/detail/attagain/7771065
The default Log File Catalina. Out generated by Tomcat increases gradually over time, possibly reaching the g level. If the file is too large, we will not be able to use regular editing tools to view it, seriously affecting system maintenance. To solve this problem, we mainly consider Tomcat and code.
Use cronolog to split Tomcat's Catalina. Out File
Recently, due to work requirements, the Catalina. Out file of Tomcat is constantly expanding, which leads to a smaller disk space edge and difficult to manage. Therefore, we want to use a tool to separate it. I found cronolog online.
The installation process is as follows:Download (Latest Version)
# Wget http://cr
Zookeeper Resource URL: http://download.csdn.net/detail/attagain/7771065 The default Log File Catalina. Out generated by Tomcat increases gradually over time, possibly reaching the g level. If the file is too large, we will not be able to use regular editing tools to view it, seriously affecting system maintenance. To solve this problem, we mainly consider Tomcat
When I was working on a Web project recently, it was always the same as the tomcat5.5 directory
/conf/catalina/localhost the configuration file about the project in this deal.
What is he specifically about?
To get information from the Internet, organize as follows:
(3) Set up ABC directory under C:/tomcat 5.5/webapps/, in/conf/catalina/localhost
The followi
First, make sure that you have installed the cronolog tool. If not, install it first ,:
Wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
The default installation path is/usr/local/sbin/cronolog.
Go to the bin directory of Tomcat and open Catalina. sh file, find the Tomcat startup line, or you can directly find
Org.apache.catalina.core.StandardHost.startInternal (standardhost.java:868)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
... 6 more
March 19, 2017 1:46:55 am Org.apache.catalina.startup.Catalina start
Critical: The required Server component failed to start so Tomcat was unable to start.
org.apache.catalina.LifecycleException:Failed to start component [standardserver[8005]
At Org.apache.catalina.util.LifecycleBase.start (
(webappclassloaderbase.java:2066)At Org.apache.catalina.loader.WebappLoader.stopInternal (webapploader.java:661)At Org.apache.catalina.util.LifecycleBase.stop (lifecyclebase.java:232)... Ten moreFeb, 8:46:56 AM org.apache.catalina.util.LifecycleBase stopInfo:the Stop () method was called on component [[E-mail protected]] after stop () had already been called. The second call would be ignored.Feb, 8:46:56 AM org.apache.catalina.core.StandardContext ReloadThis compares to the pit daddy is, does n
Tomcat publishes the project in roughly three ways, but the side dishes think it is best to publish the project by adding a configuration file under the Tomcat's Conf/catalina/localhost directory.
Because this is the least intrusive for Tomcat, you just need to add a configuration file, do not need to modify the original configuration, and support dynamic resolut
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.